export function reviewDiagnosis(data, ageType) {
  const { attr229, attr228, attr230, attr231 } = data
  let tmpAttr = ageType === 'lessThan' ? attr229 : attr228
  if (attr231 && tmpAttr) tmpAttr += `,${attr231}`
  if (attr231 && !tmpAttr) tmpAttr = `${attr231}`

  if (tmpAttr && attr230) {
    return `${tmpAttr}(五项基本特征：${attr230})`
  } else if (tmpAttr) {
    return `${tmpAttr}`
  } else if (attr230) {
    return `(五项基本特征：${attr230})`
  } else if (attr231) {
    return `${attr231}`
  }
  return ''
}
// const { attr228, attr230 } = data
// if (attr228 && attr230) {
//   return `${attr228}(五项基本特征：${attr230})`
// } else if (attr228) {
//   return `${attr228}`
// } else if (attr230) {
//   return `(五项基本特征：${attr230})`
// }
// return ''
